<?php

namespace app\logic\viewModel;

use think\Model;

class MusicUserView extends Model
{
    protected $name='music_writer';

    public static function getWriterByMusicId($music_id,$field='writer_name,writer_head_img,user_id'){
        return self::whereIn('id',$music_id)
            ->column($field,'id');
    }
}